//
//  ViewController.swift
//  HLweibo
//
//  Created by Mac on 15/9/16.
//  Copyright © 2015年 HM. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        view.backgroundColor = UIColor.orangeColor()

         let btn = UIButton(type: UIButtonType.ContactAdd)
        
        btn.center = view.center
        
        btn.addTarget(self, action: "click", forControlEvents: UIControlEvents.TouchUpInside)
        
        
        view.addSubview(btn)
        
        
    }
    
    
    func click() {
        
        print("hello")
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

